﻿$(function () {

    $(".delete-sponsor-logo").click(function () {
        lanHomepage.sharedLayout.deleteSponsorLogo($(this).parent().attr("id"));
    });

    $(".delete-news-post").click(function () {
        lanHomepage.mainpage.deleteNewsPost($(this).parent().attr("id"));
    });

    $("#new-news-button").click(function () {
        lanHomepage.mainpage.toggleVisibility();
    });

    $(".edit-news-post").click(function () {
        lanHomepage.mainpage.editNewsPost($(this).parent().attr("id"));
    });

    $(".edit-news-cancel").click(function () {
        lanHomepage.mainpage.cancelEdit($(this).parent().parent().attr("id"));
    });

    $(".edit-news-ok").click(function () {
        lanHomepage.mainpage.confirmEdit($(this).parent().parent().attr("id"));
    });

});

